<?php if (count($listMenu) > 0): ?>
	<div id="menu">
		<ul>
			<?php foreach($listMenu[$this->Session->read('User.memberTypePrefix')] as $menu): ?>
				<li><?php echo $this->Html->link($menu[0], $menu[1], array('title' => $menu[0])); ?></li>
			<?php endforeach; ?>
		</ul>
		<?php if (($this->Session->read('User.memberTypePrefix') == 'sm' or $this->Session->read('User.memberTypePrefix') == 'st') and (count($listSprints) > 0)): ?>
			<script type="text/javascript"> 
				$(function () {
					$("select.selectSprint").change(function() {
						$("form#formSprint").submit();
					});
				});
			</script> 
			<div id="select_sprint">
				<?php echo $this->Form->create('Sprint', array('url' => '/sprints/select_sprint', 'id' => 'formSprint')); ?>
				<?php echo __('Sprint: %s', 
				$this->Form->input('sprint_id', array('type' => 'select', 'options' => $listSprints, 'selected' => $this->Session->read('Sprint.id'), 'div' => false, 'label' => false, 'class' => 'selectSprint'))
				); ?> 
				<?php echo $this->Form->end(); ?>
			</div>
		<?php endif; ?>
		<div class="clear"></div>
	</div>
<?php endif; ?>